@use '@/styles/variables' as *;

.size {
  width: 33%;
  height: 49%;
  border: $deep-border;
  border-radius: 15px;

  .content {
    padding: 5px 10px;
  }
}

.storeInfo,
.efficiency .left {
  h3 {
    font-size: 3vh;
    font-weight: bold;
  }

  p {
    font-size: 2vh;
  }

  .head {
    border-bottom: $basic-border;
    padding: 5px 10px;
    color: $white-color;
  }

  :global(.ant-statistic) {
    width: 20%;
  }

  :global(.ant-statistic-title) {
    color: #fff !important;
    margin: 0;
    font-size: 2vh;
    font-weight: bold;
    text-align: center;
  }

  :global(.ant-statistic-content) {
    color: #fff !important;
    font-size: 2vh;
    text-align: center;
  }

  .row {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin-bottom: 5px;
  }

  .charts {
    margin-top: 10px;
    width: 100%;
    display: flex;
    justify-content: space-evenly;

    h4 {
      font-size: 1.5vh;
      font-weight: bold;
      text-align: center;
    }

    li {
      width: 30%;
    }
  }
}

.turnOver {
  .head {
    height: 8vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 15px 10px;
    margin-bottom: 20px;
    border-bottom: $deep-border;
  }

  h4 {
    font-size: 2vh;
    font-weight: bold;
  }
}

.promotion {
  padding: 5px;
}

.monthAnalysis {
  h4 {
    height: 6vh;
    font-size: 2vh;
    font-weight: bold;
    padding: 15px 15px 5px;
    border-bottom: $deep-border;
    text-align: center;
  }

  .slider {
    height: 7vh;
    margin-top: 1vh;
    padding: 1vh;
    border-top: $deep-border;
  }
}

.efficiency {
  .right {
    width: 59%;

    canvas {
      border: $deep-border !important;
      border-radius: 10px;
      margin: 5px !important;
      padding: 5px !important;
    }
  }

  .left {
    width: 40%;
    padding-top: 5px;
  }

  .bottom {
    display: flex;
  }

  .takeout {
    margin-top: 5px;
    border: $deep-border;
    border-radius: 10px;

    h4 {
      font-size: 1.8vh;
      position: relative;
      text-align: center;
      font-weight: bold;
      transform: translateY(25%);
    }
  }


  :global(.ant-statistic) {
    width: 100% !important;
    border: $deep-border;
    border-radius: 10px;
    padding: 5px;
  }

  :global(.ant-statistic-content) {
    font-size: 2vh !important;
  }
}

.dailyInfo {

  .top {
    @include flex-between;
    padding: 10px 20px 5px;
    border-bottom: $deep-border;
    height: 6vh;

    h4 {
      font-weight: bold;
      font-size: 2vh;
    }

    .datePicker {
      width: 30%;
    }
  }

  ul {
    display: flex;
    margin-top: 1vh;

    li {
      width: 50%;
      padding-bottom: 5px;
      text-align: center;
      font-size: 2vh;
    }
  }

  .rate {
    @include flex-between;
    padding: 0 10%;
  }
}